#ifndef NETSET_H
#define NETSET_H

#include <QWidget>
#include <QHostInfo>
#include <QTcpServer>
#include <QTcpSocket>
#include <QUdpSocket>
namespace Ui {
class Netset;
}

class Netset : public QWidget
{
    Q_OBJECT

public:
    explicit Netset(QWidget *parent = 0);
    ~Netset();
    void initWindow();
signals:
    //void jsonReceived(const QByteArray& jsonData);
private slots:


    void on_conButton_clicked();

    void on_sendButton_clicked();

private:
    Ui::Netset *ui;
    QTcpServer * s_socket;
    QTcpSocket * c_socket;

    QTcpSocket * client_socket;


    QUdpSocket * udp_socket;
};

#endif // NETSET_H
